﻿
<!DOCTYPE html>
<!-- 履职职责落实情况管理_被评估人添加 -->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>


</head>

<body>


    <div id="app" v-cloak class="popupW100">

        <el-form label-position="right" :model="Form" status-icon :rules="rules" ref="ruleForm" label-width="100px"
                 size="mini">

            <el-row>
                <el-col :sqpn="24">
                    <div class="elst-select-mini">
                        <el-form-item prop="department">
                            <el-input type="text" v-model="Form.department" autocomplete="off" size="mini">
                                <template slot="prepend">
                                    {{PerformanceAssessPlan.Department+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>
            <el-row>
                <el-col :sqpn="24">
                    <div class="elst-select-mini">
                        <el-form-item prop="evaluator">
                            <el-input type="text" v-model="Form.evaluator" autocomplete="off" size="mini">
                                <template slot="prepend">
                                    {{PerformanceAssessPlan.Evaluator+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>

            <el-row>
                <el-col :sqpn="24">
                    <div class="elst-select-mini">
                        <el-form-item prop="post">
                            <el-input type="text" v-model="Form.post" autocomplete="off" size="mini">
                                <template slot="prepend">
                                    {{PerformanceAssessPlan.Post+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>

            <el-row>
                <el-col :sqpn="24">
                    <div class="elst-select-mini">
                        <el-form-item prop="straightLine">
                            <el-input type="text" v-model="Form.straightLine" autocomplete="off" size="mini">
                                <template slot="prepend">
                                    {{PerformanceAssessPlan.StraightLine+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>

            <el-row>
                <el-col :sqpn="24">
                    <div class="elst-select-mini">
                        <el-form-item prop="remarks">
                            <el-input type="text" v-model="Form.remarks" autocomplete="off" size="mini">
                                <template slot="prepend">
                                    {{PerformanceAssessPlan.Remarks+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>

            <br>
            <el-row type="flex" justify="end">
                <el-form-item>
                    <el-button type="primary" @click="onSubmitForm">{{col.btnCommit}}</el-button>
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                //父业传参
                id: '',
                course: [],
                //业务表单内容
                Form: {
                    //course: '',
                    //LastTrainingTime: '',
                    //TrainingFrequency: '',
                    //course: '',
                },
                TrainingFrequency: [],
                //表单验证
                rules: {
                    //course: [
                    //    verification.NotNull
                    //],
                    //LastTrainingTime: [
                    //    verification.NotNull
                    //]
                }
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                //提交数据
                onSubmitForm: function () {
                    //this.Form.TrainingFrequency = this.Form.TrainingFrequency + ' 年/次'
                    //var course = this.Form.course;
                    //var LastTrainingTime = this.Form.LastTrainingTime;
                    console.log("xxxxxxxxxxxxxxxx");
                    parent.app.Form.employmentLicenseList.push({
                        department: this.Form.department,
                        evaluator: this.Form.evaluator,
                        post: this.Form.post,
                        straightLine: this.Form.straightLine,
                        remarks: this.Form.remarks,
                    });
                    parent.app.ListItem.dialogVisible = false;
                },
                getData: function () {
                  //  this.Form.course = this.Form.course + "";
                }
            },
            mounted: function () {
                //this.TrainingFrequency = getDicData('50');
                //this.course = getDicData('83');

            },
        });
    </script>
</body>

</html>